<?xml version="1.0" encoding="UTF-8"?>
<ns3:AppSchemaDataAccess xmlns:ns3="http://www.geotools.org/app-schema" xmlns:ns2="http://www.opengis.net/ogc">
  <namespaces>
    <Namespace>
      <prefix>gml</prefix>
      <uri>http://www.opengis.net/gml/3.2</uri>
    </Namespace>
    <Namespace>
      <prefix>mt</prefix>
      <uri>http://www.geo-solutions.it/smartappschema/1.0</uri>
    </Namespace>
  </namespaces>
  <includedTypes />
  <targetTypes>
    <FeatureType>
      <schemaUri>meteo-observations-gml.xsd</schemaUri>
    </FeatureType>
  </targetTypes>
  <typeMappings>
    <FeatureTypeMapping>
      <sourceDataStore>smartappschematest</sourceDataStore>
      <sourceType>meteo_observations</sourceType>
      <targetElement>mt:MeteoObservationsFeature</targetElement>
      <attributeMappings>
        <AttributeMapping>
          <targetAttribute>mt:MeteoObservationsFeature</targetAttribute>
          <idExpression>
            <OCQL>strConcat('MeteoObservationsFeature.',id)</OCQL>
          </idExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:id</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:time</targetAttribute>
          <sourceExpression>
            <OCQL>time</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:value</targetAttribute>
          <sourceExpression>
            <OCQL>value</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:decimal_value</targetAttribute>
          <sourceExpression>
            <OCQL>decimal_value</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>meteoParameters</targetAttribute>
          <sourceExpression>
            <linkField>FEATURE_LINK[1]</linkField>
            <linkElement>mt:MeteoParametersFeature</linkElement>
            <OCQL>parameter_id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>meteoStations</targetAttribute>
          <sourceExpression>
            <linkField>FEATURE_LINK[1]</linkField>
            <linkElement>mt:MeteoStationsFeature</linkElement>
            <OCQL>station_id</OCQL>
          </sourceExpression>
        </AttributeMapping>
      </attributeMappings>
    </FeatureTypeMapping>
    <FeatureTypeMapping>
      <sourceDataStore>smartappschematest</sourceDataStore>
      <sourceType>meteo_parameters</sourceType>
      <targetElement>mt:MeteoParametersFeature</targetElement>
      <attributeMappings>
        <AttributeMapping>
          <targetAttribute>FEATURE_LINK[1]</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:MeteoParametersFeature</targetAttribute>
          <idExpression>
            <OCQL>strConcat('MeteoParametersFeature.',id)</OCQL>
          </idExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:id</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:param_name</targetAttribute>
          <sourceExpression>
            <OCQL>param_name</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:param_unit</targetAttribute>
          <sourceExpression>
            <OCQL>param_unit</OCQL>
          </sourceExpression>
        </AttributeMapping>
      </attributeMappings>
    </FeatureTypeMapping>
    <FeatureTypeMapping>
      <sourceDataStore>smartappschematest</sourceDataStore>
      <sourceType>meteo_stations</sourceType>
      <targetElement>mt:MeteoStationsFeature</targetElement>
      <attributeMappings>
        <AttributeMapping>
          <targetAttribute>FEATURE_LINK[1]</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:MeteoStationsFeature</targetAttribute>
          <idExpression>
            <OCQL>strConcat('MeteoStationsFeature.',id)</OCQL>
          </idExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:id</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:code</targetAttribute>
          <sourceExpression>
            <OCQL>code</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:common_name</targetAttribute>
          <sourceExpression>
            <OCQL>common_name</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:position</targetAttribute>
          <sourceExpression>
            <OCQL>position</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>meteoStationsMaintainers</targetAttribute>
          <sourceExpression>
            <linkField>FEATURE_LINK[1]</linkField>
            <linkElement>mt:MeteoStationsMaintainersFeature</linkElement>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
      </attributeMappings>
    </FeatureTypeMapping>
    <FeatureTypeMapping>
      <sourceDataStore>smartappschematest</sourceDataStore>
      <sourceType>meteo_stations_maintainers</sourceType>
      <targetElement>mt:MeteoStationsMaintainersFeature</targetElement>
      <attributeMappings>
        <AttributeMapping>
          <targetAttribute>FEATURE_LINK[1]</targetAttribute>
          <sourceExpression>
            <OCQL>station_id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:MeteoStationsMaintainersFeature</targetAttribute>
          <idExpression>
            <OCQL>strConcat('MeteoStationsMaintainersFeature.',id)</OCQL>
          </idExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:id</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>meteoMaintainers</targetAttribute>
          <sourceExpression>
            <linkField>FEATURE_LINK[1]</linkField>
            <linkElement>mt:MeteoMaintainersFeature</linkElement>
            <OCQL>manteiner_id</OCQL>
          </sourceExpression>
        </AttributeMapping>
      </attributeMappings>
    </FeatureTypeMapping>
    <FeatureTypeMapping>
      <sourceDataStore>smartappschematest</sourceDataStore>
      <sourceType>meteo_maintainers</sourceType>
      <targetElement>mt:MeteoMaintainersFeature</targetElement>
      <attributeMappings>
        <AttributeMapping>
          <targetAttribute>FEATURE_LINK[1]</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:MeteoMaintainersFeature</targetAttribute>
          <idExpression>
            <OCQL>strConcat('MeteoMaintainersFeature.',id)</OCQL>
          </idExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:id</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:name</targetAttribute>
          <sourceExpression>
            <OCQL>name</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:surname</targetAttribute>
          <sourceExpression>
            <OCQL>surname</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:company</targetAttribute>
          <sourceExpression>
            <OCQL>company</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:active</targetAttribute>
          <sourceExpression>
            <OCQL>active</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
          <targetAttribute>mt:place</targetAttribute>
          <sourceExpression>
            <OCQL>place</OCQL>
          </sourceExpression>
        </AttributeMapping>
      </attributeMappings>
    </FeatureTypeMapping>
  </typeMappings>
</ns3:AppSchemaDataAccess>